package com.niit.service.impl;

import com.niit.dao.GoodMapper;
import com.niit.pojo.Goods;
import com.niit.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodMapper goodMapper;

    @Override
    public List<Goods> selectgoodtList() {return goodMapper.selectgoodList();}
    @Override
    public Goods goodSelect(int id){
        return goodMapper.goodSelect(id);}
    public void goodInsert(Goods goods){goodMapper.goodInsert(goods);}
    public void goodUpdate(Goods goods){goodMapper.goodUpdate(goods);};
    public void goodDelete(int id){goodMapper.goodDelete(id);};
}
